package com.soloyogame.anitoys.service.impl;import com.soloyogame.anitoys.core.ServersManager;import com.soloyogame.anitoys.db.commond.Address;import com.soloyogame.anitoys.db.dao.AddressDao;import com.soloyogame.anitoys.service.AddressService;import org.springframework.stereotype.Service;import javax.annotation.Resource;@Servicepublic class AddressServiceImpl extends ServersManager<Address, AddressDao> implements		AddressService {    @Resource    @Override    public void setDao(AddressDao addressDao) {        this.dao = addressDao;    }    @Override	public void setAddressDefault(Address address) {		dao.initAllAddress(address);        dao.update(address);//设置指定的地址为默认地址	}	@Override	public void upDefault(Address address) {		dao.initAllAddress(address);	}	@Override	public int selectCountByAccountId(Address address) {				return dao.selectCountByAccountId(address);	}}